inherited frmRakeOffCalc: TfrmRakeOffCalc
  Left = 284
  Top = 201
  Width = 857
  Height = 512
  Caption = #19994#32489#35745#31639
  PixelsPerInch = 96
  TextHeight = 12
  object rzpgcntrl1: TRzPageControl [0]
    Left = 0
    Top = 0
    Width = 849
    Height = 445
    ActivePage = tbsFirst
    Align = alClient
    ParentColor = False
    TabIndex = 0
    TabOrder = 0
    FixedDimension = 18
    object tbsFirst: TRzTabSheet
      Caption = '    '#31532#19968#27493#12289#38144#21806#27719#24635'  '
      object edtFocus: TcxTextEdit
        Left = 60
        Top = 227
        TabOrder = 2
        Text = 'edtFocus'
        Width = 121
      end
      object grdSale: TcxGrid
        Left = 0
        Top = 41
        Width = 845
        Height = 382
        Align = alClient
        TabOrder = 1
        object viewSale: TcxGridDBTableView
          Navigator.Buttons.CustomButtons = <>
          DataController.DataModeController.GridMode = True
          DataController.DataSource = dsSale
          DataController.Summary.DefaultGroupSummaryItems = <>
          DataController.Summary.FooterSummaryItems = <>
          DataController.Summary.SummaryGroups = <>
          OptionsBehavior.FocusCellOnTab = True
          OptionsBehavior.FocusFirstCellOnNewRecord = True
          OptionsBehavior.GoToNextCellOnEnter = True
          OptionsBehavior.FocusCellOnCycle = True
          OptionsView.ScrollBars = ssVertical
          OptionsView.ColumnAutoWidth = True
          OptionsView.GroupByBox = False
          OptionsView.Indicator = True
          OptionsView.IndicatorWidth = 30
          Styles.Background = MainDM.bslBackGroup
          Styles.ContentEven = MainDM.bsEven
          Styles.ContentOdd = MainDM.bsOdd
          Styles.Selection = MainDM.bsSelect
          Styles.Footer = MainDM.bsTitle
          Styles.Header = MainDM.bsTitle
          object viewSalebdate: TcxGridDBColumn
            Caption = #26085#26399
            DataBinding.FieldName = 'bdate'
            HeaderAlignmentHorz = taCenter
            Width = 142
          end
          object viewSalebcode: TcxGridDBColumn
            Caption = #21333#21495
            DataBinding.FieldName = 'bcode'
            HeaderAlignmentHorz = taCenter
            Width = 189
          end
          object viewSaleamount: TcxGridDBColumn
            Caption = #37329#39069
            DataBinding.FieldName = 'amount'
            HeaderAlignmentHorz = taCenter
            Width = 139
          end
          object viewSalefilname: TcxGridDBColumn
            Caption = #20998#25903
            DataBinding.FieldName = 'filname'
            HeaderAlignmentHorz = taCenter
            Width = 140
          end
          object viewSaledeptname: TcxGridDBColumn
            Caption = #37096#38376
            DataBinding.FieldName = 'deptname'
            HeaderAlignmentHorz = taCenter
            Width = 137
          end
          object viewSaleempname: TcxGridDBColumn
            Caption = #19994#21153#21592
            DataBinding.FieldName = 'empname'
            HeaderAlignmentHorz = taCenter
            Width = 139
          end
        end
        object lvlSale: TcxGridLevel
          GridView = viewSale
        end
      end
      object Panel2: TPanel
        Left = 0
        Top = 0
        Width = 845
        Height = 41
        Align = alTop
        BevelOuter = bvNone
        TabOrder = 0
        DesignSize = (
          845
          41)
        object btnFilter: TcxButton
          Left = 757
          Top = 8
          Width = 75
          Height = 25
          Anchors = [akTop, akRight]
          Caption = #36807#28388
          TabOrder = 0
          OnClick = btnFilterClick
        end
        object cxLabel2: TcxLabel
          Left = 20
          Top = 12
          Caption = #36215#22987#26085#26399
          Transparent = True
        end
        object cxLabel3: TcxLabel
          Left = 218
          Top = 12
          Caption = #25130#27490#26085#26399
          Transparent = True
        end
        object edtSDate: TcxDateEdit
          Left = 72
          Top = 11
          Properties.DateButtons = [btnToday]
          Properties.ImmediatePost = True
          Properties.SaveTime = False
          Properties.ShowTime = False
          Properties.OnValidate = edtSDatePropertiesValidate
          TabOrder = 1
          Width = 121
        end
        object edtEDate: TcxDateEdit
          Left = 272
          Top = 11
          Properties.DateButtons = [btnToday]
          Properties.ImmediatePost = True
          Properties.SaveTime = False
          Properties.ShowTime = False
          TabOrder = 2
          Width = 121
        end
      end
    end
    object tbsSecond: TRzTabSheet
      Caption = '    '#31532#20108#27493#12289#19994#32489#32479#35745'   '
      object grdRakeOffCalc: TcxGrid
        Left = 0
        Top = 0
        Width = 845
        Height = 423
        Align = alClient
        TabOrder = 0
        object viewRakeOffCalc: TcxGridDBTableView
          Navigator.Buttons.CustomButtons = <>
          DataController.DataSource = dsRakeOffCalc
          DataController.Summary.DefaultGroupSummaryItems = <>
          DataController.Summary.FooterSummaryItems = <>
          DataController.Summary.SummaryGroups = <>
          OptionsData.Inserting = False
          OptionsView.ColumnAutoWidth = True
          OptionsView.GroupByBox = False
          OptionsView.Indicator = True
          OptionsView.IndicatorWidth = 30
          Styles.Background = MainDM.bslBackGroup
          Styles.ContentEven = MainDM.bsEven
          Styles.ContentOdd = MainDM.bsOdd
          Styles.Selection = MainDM.bsSelect
          Styles.Footer = MainDM.bsTitle
          Styles.Header = MainDM.bsTitle
          object viewRakeOffCalcempname: TcxGridDBColumn
            DataBinding.FieldName = 'empname'
            Width = 142
          end
          object viewRakeOffCalcdeptname: TcxGridDBColumn
            DataBinding.FieldName = 'deptname'
            Width = 142
          end
          object viewRakeOffCalcfilname: TcxGridDBColumn
            DataBinding.FieldName = 'filname'
            Width = 91
          end
          object viewRakeOffCalcamount: TcxGridDBColumn
            DataBinding.FieldName = 'amount'
            Width = 97
          end
          object viewRakeOffCalcrakeoff: TcxGridDBColumn
            DataBinding.FieldName = 'rakeoff'
            Width = 66
          end
          object viewRakeOffCalcrakeoffamt: TcxGridDBColumn
            DataBinding.FieldName = 'rakeoffamt'
            Width = 130
          end
          object viewRakeOffCalcrakeoffname: TcxGridDBColumn
            DataBinding.FieldName = 'rakeoffname'
            Visible = False
            Width = 218
          end
        end
        object lvlRakeOffCalc: TcxGridLevel
          GridView = viewRakeOffCalc
        end
      end
    end
  end
  object rzpnl1: TRzPanel [1]
    Left = 0
    Top = 445
    Width = 849
    Height = 40
    Align = alBottom
    BorderOuter = fsNone
    TabOrder = 1
    DesignSize = (
      849
      40)
    object btnPrior: TcxButton
      Left = 599
      Top = 8
      Width = 75
      Height = 25
      Anchors = [akRight, akBottom]
      Caption = #19978#19968#27493
      Enabled = False
      TabOrder = 3
      OnClick = btnPriorClick
      LookAndFeel.Kind = lfUltraFlat
    end
    object btnNext: TcxButton
      Left = 682
      Top = 8
      Width = 75
      Height = 25
      Anchors = [akRight, akBottom]
      Caption = #19979#19968#27493
      TabOrder = 4
      OnClick = btnNextClick
      LookAndFeel.Kind = lfUltraFlat
    end
    object btnCancel: TcxButton
      Left = 766
      Top = 8
      Width = 75
      Height = 25
      Anchors = [akRight, akBottom]
      Cancel = True
      Caption = #21462#28040
      TabOrder = 5
      OnClick = btnCancelClick
      LookAndFeel.Kind = lfUltraFlat
    end
    object btnSave: TcxButton
      Tag = 140
      Left = 489
      Top = 8
      Width = 100
      Height = 25
      Anchors = [akRight, akBottom]
      Caption = #19994#32489#35745#31639#21333#20445#23384
      TabOrder = 2
      Visible = False
      OnClick = btnSaveClick
      LookAndFeel.Kind = lfUltraFlat
    end
    object btnEmpty: TcxButton
      Left = 94
      Top = 8
      Width = 75
      Height = 25
      Anchors = [akLeft, akBottom]
      Caption = #28165#31354
      TabOrder = 1
      Visible = False
      LookAndFeel.Kind = lfUltraFlat
    end
    object btnSelAll: TcxButton
      Left = 11
      Top = 8
      Width = 75
      Height = 25
      Anchors = [akLeft, akBottom]
      Caption = #20840#36873
      TabOrder = 0
      Visible = False
      LookAndFeel.Kind = lfUltraFlat
    end
  end
  object qrySale: TUniQuery
    Connection = MainDM.UniConn
    SQL.Strings = (
      
        'select s.*,f.fi_filnm filname,d.ed_deptnm deptname,e.em_name emp' +
        'name '
      '     from tb_sale s '
      '     left join td_filiale f on s.filid=f.fi_filid         '
      '     left join td_dept d on s.deptid=d.ed_deptid         '
      '     left join td_empmaster e on s.empid=e.em_employeeid'
      '     where s.bstate=1 '
      '     and s.bdate>='#39'1899-12-31'#39
      '     and s.bdate<'#39'2011-12-31'#39
      '     order by s.filid,s.deptid,s.empid,s.bdate')
    CachedUpdates = True
    Options.SetFieldsReadOnly = False
    Options.RequiredFields = False
    Options.QueryRecCount = True
    Left = 117
    Top = 115
  end
  object dsSale: TDataSource
    DataSet = qrySale
    Left = 177
    Top = 119
  end
  object cdsRakeOffCalc: TClientDataSet
    Aggregates = <>
    Params = <>
    Left = 105
    Top = 203
    object cdsRakeOffCalcempid: TIntegerField
      FieldName = 'empid'
    end
    object cdsRakeOffCalcdeptid: TIntegerField
      FieldName = 'deptid'
    end
    object cdsRakeOffCalcempname: TStringField
      DisplayLabel = #19994#21153#21592
      FieldName = 'empname'
      Size = 60
    end
    object cdsRakeOffCalcdeptname: TStringField
      DisplayLabel = #37096#38376
      FieldName = 'deptname'
      Size = 60
    end
    object cdsRakeOffCalcfilname: TStringField
      DisplayLabel = #20998#25903
      FieldName = 'filname'
      Size = 60
    end
    object cdsRakeOffCalcfilid: TIntegerField
      FieldName = 'filid'
    end
    object cdsRakeOffCalcamount: TFloatField
      DisplayLabel = #24635#37329#39069
      FieldName = 'amount'
    end
    object cdsRakeOffCalcrakeoff: TFloatField
      DisplayLabel = #25552#25104#27604#29575'%'
      FieldName = 'rakeoff'
    end
    object cdsRakeOffCalcrakeoffname: TStringField
      DisplayLabel = #25968#25454#26469#28304
      FieldName = 'rakeoffname'
      Size = 60
    end
    object cdsRakeOffCalcrakeoffkind: TIntegerField
      FieldName = 'rakeoffkind'
    end
    object cdsRakeOffCalcrakeoffamt: TFloatField
      DisplayLabel = #25552#25104#37329#39069
      FieldName = 'rakeoffamt'
    end
  end
  object dsRakeOffCalc: TDataSource
    DataSet = cdsRakeOffCalc
    Left = 189
    Top = 203
  end
end
